<?php
	global $_CATEGORY,$_APPLY;
	//print_r($_APPLY);
	$i=20;
?>

{loop $tags $k $t}

{if $t[company] != '' && $t[title] != '' }
<div class="list" id="item_{$t[itemid]}">
	<table id="show_item_{$t[itemid]}">
	<tr>
		<td width="25" align="center">&nbsp;
	  <input type="checkbox" id="check_{$t[itemid]}" name="itemid[]" value="{$t[itemid]}" onclick="sell_tip(this, {$t[itemid]});"/> </td>
		<td width="90" align="center"><div><a href="{$t[linkurl]}" target="_blank"><img src="{imgurl($t[thumb], 1)}" width="80" height="80" alt="{$t[alt]}" onmouseover="img_tip(this, this.src);" onmouseout="img_tip(this, '');" class="listimg"/></a></div></td>
		<td width="10" align="center"> </td>
		<td>
			<div class="sell_list_c">
				<table  border="0" cellspacing="0" cellpadding="0" width="100%">
  <tr>
    <td colspan="4"><a href="{$t[linkurl]}" target="_blank"><strong class="px14">{$t[title]}</strong></a></td>
    </tr>
  <tr>
  <tr>
    <td >供货总量：{$t[amount]}{$t[unit]} | 型号：{$t[model]} | 类别：{$_CATEGORY[$t['catid']]['catname']} | 应用范畴：{if $t['applyid']}{$_APPLY[$t['applyid']]['catname']}{/if} | 交割地：{$t[jiaoged]} | 强度等级：{$t[dengji]} | 表面处理：{$t[biaom]} | 规格：{$t[standard]}</td>
    </tr>
</table>
			</div>
		</td>
		<td width="10" align="center" > </td>
		<td>
			<div class="sell_list_r">
				<p>{if $t[unit] && $t[price]>0}
			<span class="f_red"><strong class="px14">{$t[price]}</strong>/{$t[unit]}</span>
			{$t[minamount]}{$t[unit]}起订
		{else}
		  {if $t[price]>0}
                        <span class="f_red"><strong class="px14">{$t[price]}</strong>/单位</span><br/>
		  {else}
		        <span class="f_gray">面议</span>
		  {/if}
		{/if}<img src="{DT_SKIN}image/inquiry.gif" alt="询价" style="cursor:pointer;"  onclick="Go('{$MODULE[$moduleid][linkurl]}{rewrite('inquiry.php?itemid='.$t['itemid'])}');"/></p>
				<div {if $t[vip]}style="padding-left:0px;"{/if} class="companyinfo"  id="company_{$t[itemid]}" onmousemove="show_company('#company_{$t[itemid]}');" style="z-index:{$i}">
					<div>{if $t[vip]}<img src="{DT_SKIN}image/vip.gif"/>&nbsp;&nbsp;{/if}<a href="{userurl($t[username])}" target="_blank" >{$t[company]}</a>&nbsp;
					{if $t[validated]}<span class="f_green">[已核实]</span>{else}[未核实]{/if}
					{if !$t[username]} [未注册]{/if}</div>
					{if $t[username]}
					<div class="msgNav" style="display:none;">
						<div class="msgNavinfo">
						<?php
							$c=userinfo($t[username]);
						?>
							<a href="{userurl($t[username])}" target="_blank" >{$c[company]}</a><br />
							<span>产品大项分类:</span>{$t['business']}<br />
							<span>注册资金:</span>{$c['regunit']}{$c['capital']}万<br />
							<span>经营模式:</span>{$c['mode']}<br />
							<span>发货地:</span>{$t['jiaoged']}<br />{$t['two']}
						</div>
					</div>
					{/if}
				</div>
				<p >{timetodate($t[edittime], $datetype)}&nbsp;&nbsp;</p>
			</div>
		</td>
	</tr>
  </table>
</div>
<?php $i--;?>
{/if}
{/loop}		
{if $showpage && $pages}<div class="pages">{$pages}</div>{/if}